package com.qf.job;

import org.apache.shardingsphere.elasticjob.api.ShardingContext;
import org.apache.shardingsphere.elasticjob.simple.job.SimpleJob;
import org.springframework.stereotype.Component;

/**
 * 任务类，具体要执行的业务
 * @version v1.0.0
 * @Description:
 * @author: 姜红凯
 * @date: 2022.03.23
 * @since 1.0
 */
@Component
public class MyJob  implements SimpleJob {

    @Override
    public void execute(ShardingContext shardingContext) {
        System.out.println("======任务执行了一次=====");
    }

}